home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 192_01 / color.doc < prev    next >
Text File  |  1980-01-01  |  2KB  |  65 lines

  1. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  2.  
  3.                  COLOR COMMAND
  4.  
  5.                       Michael M. Yokoyama
  6.                           June, 1986
  7.  
  8. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  9.  
  10. Summary:
  11.  
  12. COLOR command to select text colors for on IBM-PC under PC-DOS and compatibles 
  13. under MS-DOS.  The COLOR command is used in the same manner as the MS-BASIC 
  14. COLOR command.  
  15.  
  16.  
  17. Syntax:  
  18.  
  19.     COLOR <foreground>[+] [<background>]\n",ESC,ESC);    
  20.  
  21.  
  22. Examples:
  23.  
  24.     COLOR 0 3    Black on yellow (for that expensive terminal look)
  25.     COLOR 1 4    Red on blue (for emphasis?!)
  26.  
  27.  
  28. Default:    
  29.  
  30. The background color code may be omitted; the default is black.\n");
  31.  
  32.     COLOR 4      Blue   (on default black)
  33.     COLOR 3         Yellow (on default black; looks like those amber monitors)
  34.  
  35.  
  36. Highlighting:  
  37.  
  38. Append a plus (+) after the foreground code to highlight the color.  Mote that
  39. highlighting applies only to foreground colors.
  40.  
  41.     COLOR 2+ 4   Bright green on blue
  42.  
  43.  
  44. Notes:
  45.  
  46. This program uses ANSI escape sequences.  To use this program, you must have 
  47. the file named ANSI.SYS on the root directory of your boot disk, and the 
  48. following statement in your CONFIG.SYS file.
  49.  
  50.     device=ANSI.SYS
  51.  
  52.  
  53. Help screen:
  54.  
  55. To view the help scren for the COLOR command, enter the command without 
  56. parameters as follows:
  57.  
  58.         COLOR
  59.  
  60. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  61. MS-DOS and MS-BASIC are registered trademarks of Microsoft Corporation.
  62. PC-DOS and IBM are registered trademarks of International Business Machines
  63. Corporation.
  64. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  65.